<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<!-- 
		Replace path to template, title, header and body
		with actual data.
	 -->
<ui:composition template="../template/layout.xhtml">
	<ui:define name="titulo">#{authUtilizadorLoginController.tituloPagina}</ui:define>

	<ui:define name="frConteudo">
		<h:form id="form">
			<h:panelGrid columns="1" border="0" height="100%">

				<!-- bloco de edição -->
				<p:panel header="#{authUtilizadorLoginController.tituloPagina}">
					<h:panelGrid border="0" columns="2">
						<f:facet name="header">
							<p:messages id="msgErro" />
						</f:facet>

						<h:outputLabel value="#{msg.authUtilizador}" for="username" />
						<h:inputText id="username" label="#{msg.authUtilizador}"
							value="#{authUtilizadorLoginController.userLogado.username}" required="true"
							requiredMessage="#{msg.authUtilizadorRequiredMessage}" />

						<h:outputLabel value="#{msg.authUtilizadorPassword}" for="password" />
						<h:inputSecret id="password" label="#{msg.authUtilizadorPassword}"
							value="#{authUtilizadorLoginController.userLogado.password}" required="true"
							requiredMessage="#{msg.authUtilizadorPasswordRequiredMessage}" />
					
						<f:facet name="footer">
							<h:panelGroup>
								<center><h:commandButton id="loginButton"
									value="#{msg.loginButton}"
									action="#{authUtilizadorLoginController.doLogin}" />
								<h:commandButton id="limparButton" value="#{msg.limparButton}"
									type="reset" /></center>
							</h:panelGroup>
						</f:facet>
					</h:panelGrid>
				</p:panel>
				<!-- fim do bloco de edição -->
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>